package com.neusoft.neuiotms.dcom.repository.hn;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcom.model.hn.HnInspectionHealthPlan;

public interface HnInspectionHealthPlanRepository
        extends JpaRepository<HnInspectionHealthPlan, Long>, CustomizedHnInspectionHealthPlanRepository {

    List<HnInspectionHealthPlan> findByInstitutionCodeAndDelFlag(String unitCode, boolean delFlag);

    List<HnInspectionHealthPlan> findByInstitutionCodeAndDelFlagAndDisabled(String unitCode, boolean delFlag,
            boolean disabled);

    List<HnInspectionHealthPlan> findByCode(String code);

    List<HnInspectionHealthPlan> findFirst1ByInstitutionCodeOrderByEndDateTimeDesc(String code);

}
